<?php

include_once (__ALIPATH__.'/com/alibaba/openapi/client/entity/SDKDomain.class.php');
include_once (__ALIPATH__.'/com/alibaba/openapi/client/entity/ByteArray.class.php');

class AlibabaProductReserveRangeInfo extends SDKDomain {

       	
    private $quantity;
    
        /**
    * @return 订货数量
    */
        public function getQuantity() {
        return $this->quantity;
    }
    
    /**
     * 设置订货数量     
     * @param Long $quantity     
     * 参数示例：<pre>1000</pre>     
     * 此参数必填     */
    public function setQuantity( $quantity) {
        $this->quantity = $quantity;
    }
    
        	
    private $period;
    
        /**
    * @return 出货时间(天)
    */
        public function getPeriod() {
        return $this->period;
    }
    
    /**
     * 设置出货时间(天)     
     * @param Integer $period     
     * 参数示例：<pre>10</pre>     
     * 此参数必填     */
    public function setPeriod( $period) {
        $this->period = $period;
    }
    
    	
	private $stdResult;
	
	public function setStdResult($stdResult) {
		$this->stdResult = $stdResult;
					    			    			if (array_key_exists ( "quantity", $this->stdResult )) {
    				$this->quantity = $this->stdResult->{"quantity"};
    			}
    			    		    				    			    			if (array_key_exists ( "period", $this->stdResult )) {
    				$this->period = $this->stdResult->{"period"};
    			}
    			    		    		}
	
	private $arrayResult;
	public function setArrayResult($arrayResult) {
		$this->arrayResult = $arrayResult;
				    		    			if (array_key_exists ( "quantity", $this->arrayResult )) {
    			$this->quantity = $arrayResult['quantity'];
    			}
    		    	    			    		    			if (array_key_exists ( "period", $this->arrayResult )) {
    			$this->period = $arrayResult['period'];
    			}
    		    	    		}
 
   
}
?>